package patterns.decorate;

public class DecoratedHouse {
	private int decorateLevel;
	private House house;

	public DecoratedHouse(House house, int decorateLevel) {
		this.house = house;
		this.decorateLevel = decorateLevel;
	}

	public Float getPrice() {
		return house.getPrice() + decorateLevel * house.getAcreage() * house.getHeight() * 300;
	}

	public String showDescription() {
		return new StringBuffer(house.showDescription()).append("\n").append("decorate level:").append(decorateLevel)
				.append(",price").append(getPrice()).append("$").toString();
	}
}
